package com.UnionPayCenter.mapper;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.GiveCouponEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface GiveCouponMapper extends MyMapper<GiveCouponEntity> {


    /**
     * 获取赠送出来的优惠券领取信息
     * @param couponId
     * @return
     */
    GiveCouponEntity getCouponByDisId(@Param("couponId") String couponId);
    /**
     * 新增赠送出来的优惠券领取信息
     * @param giveCouponEntity
     */
    void saveCouponOfgive(GiveCouponEntity giveCouponEntity);
}
